package com.javasea.netty.har.client.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName ClientProps
 * @Description 客户端配置类
 * @Author longxiaonan@163.com
 * @Date 2018/10/12 0012 20:19
 */
@ConfigurationProperties(prefix = "netty.server")
@Component
public class ClientConfig {

    @Value("${netty.nioClientCode}")
    private String nioClientCode ;

    private String host;

    private Integer port;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getNioClientCode() {
        return nioClientCode;
    }

    public void setNioClientCode(String nioClientCode) {
        this.nioClientCode = nioClientCode;
    }
}
